

<%@ page import="br.atribuicoes.professor.producaoAcademica.ProducaoAcademica" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'producaoAcademica.label', default: 'ProducaoAcademica')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
           <h1 id="pageName">Altera ProducaoAcademica</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${producaoAcademicaInstance}">
            <div class="errors">
                <g:renderErrors bean="${producaoAcademicaInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${producaoAcademicaInstance?.id}" />
                <g:hiddenField name="version" value="${producaoAcademicaInstance?.version}" />
                    <table class="IadTableForm">
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="dataCadastro"><g:message code="producaoAcademica.dataCadastro.label" default="Data Cadastro" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: producaoAcademicaInstance, field: 'dataCadastro', 'errors')}">
                                    <g:datePicker name="dataCadastro" precision="day" value="${producaoAcademicaInstance?.dataCadastro}" default="none" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="status"><g:message code="producaoAcademica.status.label" default="Status" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: producaoAcademicaInstance, field: 'status', 'errors')}">
                                    <g:textField name="status" value="${producaoAcademicaInstance?.status}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="artigo"><g:message code="producaoAcademica.artigo.label" default="Artigo" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: producaoAcademicaInstance, field: 'artigo', 'errors')}">
                                    <g:select name="artigo.id" from="${br.atribuicoes.professor.producaoAcademica.Artigo.list()}" optionKey="id" value="${producaoAcademicaInstance?.artigo?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="bancasDefesas"><g:message code="producaoAcademica.bancasDefesas.label" default="Bancas Defesas" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: producaoAcademicaInstance, field: 'bancasDefesas', 'errors')}">
                                    <g:select name="bancasDefesas.id" from="${br.atribuicoes.professor.producaoAcademica.BancasDefesas.list()}" optionKey="id" value="${producaoAcademicaInstance?.bancasDefesas?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="bancasLivre"><g:message code="producaoAcademica.bancasLivre.label" default="Bancas Livre" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: producaoAcademicaInstance, field: 'bancasLivre', 'errors')}">
                                    <g:select name="bancasLivre.id" from="${br.atribuicoes.professor.producaoAcademica.BancasLivre.list()}" optionKey="id" value="${producaoAcademicaInstance?.bancasLivre?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="consultoriaEmRevista"><g:message code="producaoAcademica.consultoriaEmRevista.label" default="Consultoria Em Revista" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: producaoAcademicaInstance, field: 'consultoriaEmRevista', 'errors')}">
                                    <g:select name="consultoriaEmRevista.id" from="${br.atribuicoes.professor.producaoAcademica.ConsultoriaEmRevista.list()}" optionKey="id" value="${producaoAcademicaInstance?.consultoriaEmRevista?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="eventos"><g:message code="producaoAcademica.eventos.label" default="Eventos" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: producaoAcademicaInstance, field: 'eventos', 'errors')}">
                                    <g:select name="eventos.id" from="${br.atribuicoes.professor.producaoAcademica.Eventos.list()}" optionKey="id" value="${producaoAcademicaInstance?.eventos?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="publicaoCapitulos"><g:message code="producaoAcademica.publicaoCapitulos.label" default="Publicao Capitulos" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: producaoAcademicaInstance, field: 'publicaoCapitulos', 'errors')}">
                                    <g:select name="publicaoCapitulos.id" from="${br.atribuicoes.professor.producaoAcademica.PublicacaoCapitulos.list()}" optionKey="id" value="${producaoAcademicaInstance?.publicaoCapitulos?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="publicacaoLivros"><g:message code="producaoAcademica.publicacaoLivros.label" default="Publicacao Livros" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: producaoAcademicaInstance, field: 'publicacaoLivros', 'errors')}">
                                    <g:select name="publicacaoLivros.id" from="${br.atribuicoes.professor.producaoAcademica.PublicacaoLivros.list()}" optionKey="id" value="${producaoAcademicaInstance?.publicacaoLivros?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
    </body>
</html>
